package com.Ajava1801D.反射;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/6  14:55
 * 描述:
 */

@Component(value = "GGGGG")
public class KKKK {

    public KKKK() {
    }

    private KKKK(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Autowired(required = false)
    private String name;


    private int age;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
